#include <iostream>
#include <cstdio>
#include "array.h"

int sum(const Array & a) {
	int sum = 0;
	for (size_t i = 0; i < a.size(); ++i) {
		sum += a.get(i);	
	}
	return sum;
}

int main() {
	Array a(2);
	Array b(10);
	Array d(a);
	
	a.push_back(3);
	a.push_back(7);
	a.push_back(12);
	a.push_back(5);
	a.push_back(1);
	a.push_back(88);
	int size =  a.size();
	for (int i = 0; i < size; i++) {
		printf("%d\t",a.get(i));
	}
	printf("\n");
	
	return 0; 
}
